Horizontal navigation
A persistent, top-level navigation element that provides quick access to essential site-wide utilities and global actions, and reinforces brand identity.
#Examples
This layout is the standard for Siteimprove products and integrations.
Composition:
- Logo: Reinforces brand identity and provides a link back to the homepage.
- Actions:Provide quick access to essential system-level actions (e.g., Sign out, Notifications, Profile, Settings, Account switching) through abutton, with a sub-menu (Action Menu) for additional actions if needed. The sub-menu opens on click and closes on selection or by clicking outside.
- Skip to content: ( ): The "Skip to content" link allows keyboard users to navigate directly to the main content using the "Tab" key.
<HorizontalNavigation
appLogo={{
icon: siteImproveLogo,
href: "https://my2.siteimprove.com",
alt: "Go to main page",
"data-observe-key": "top-nav-company-link",
}}
actions={[
{
items: [
{
text: "Users",
onClick: () => console.log("clicked"),
"data-observe-key": "top-nav-users",
},
ActionMenu.divider,
{ text: "Sites", href: "https://siteimprove.com", "data-observe-key": "top-nav-sites" },
{ text: "Groups", href: "https://siteimprove.com", "data-observe-key": "top-nav-groups" },
ActionMenu.divider,
{ text: "Report", href: "https://siteimprove.com", "data-observe-key": "top-nav-report" },
ActionMenu.divider,
{
text: "Subscriptions",
href: "https://siteimprove.com",
"data-observe-key": "top-nav-subscriptions",
},
ActionMenu.divider,
{
text: "All settings",
href: "https://siteimprove.com",
"data-observe-key": "top-nav-all-settings",
},
],
buttonContent: (
<Icon>
<IconSettings />
</Icon>
),
"data-observe-key": "top-nav-settings",
"aria-label": "Settings",
tooltip: "Settings",
},
{
items: [
{
text: "Help Center",
onClick: () => console.log("clicked"),
"data-observe-key": "top-nav-help-center",
},
ActionMenu.divider,
{
text: "Frontier",
href: "https://siteimprove.com",
"data-observe-key": "top-nav-frontier",
},
ActionMenu.divider,
{
text: "Explore more modules",
href: "https://siteimprove.com",
"data-observe-key": "top-nav-explore-more-modules",
},
],
buttonContent: (
<Icon>
<IconHelp />
</Icon>
),
"data-observe-key": "top-nav-help",
"aria-label": "Help and training",
tooltip: "Help and training",
},
{
items: [
{
text: "User Name",
onClick: () => console.log("clicked"),
icon: (
<span style={initialsStyle} aria-hidden="true">
UN
</span>
),
"data-observe-key": "top-nav-user-name",
},
ActionMenu.divider,
{
text: "Switch account",
href: "https://siteimprove.com",
"data-observe-key": "top-nav-switch-account",
},
{
text: "Sign out",
href: "https://siteimprove.com",
"data-observe-key": "top-nav-sign-out",
},
],
buttonContent: (
<Icon>
<IconUser />
</Icon>
),
"data-observe-key": "top-nav-profile",
"aria-label": "Profile",
tooltip: "Profile",
},
]}
data-observe-key="top-nav"
skipToContentId="properties"
/>
#Properties
#Guidelines
#Best practices
#Do not use when
#Accessibility
Explore detailed guidelines for this component: Accessibility Specifications